namespace CMS.Entity;

public class Article : BaseEntity<int> {
    /// <summary>
    /// 关 键 字
    /// </summary>
    public string? KeyWords { get; set; }

    /// <summary>
    /// 标题类型，例如：公告，图文，推荐等类型
    /// </summary>
    public string? TitleType { get; set; }

    /// <summary>
    /// 文章简短标题
    /// </summary>
    public string? Title { get; set; }

    /// <summary>
    ///  完整标题
    /// </summary>
    public string? FullTitle { get; set; }

    /// <summary>
    /// 文章导读
    /// </summary>
    public string? Intro { get; set; }

    /// <summary>
    /// 文章标题颜色
    /// </summary>
    public string? TitleFontColor { get; set; }

    /// <summary>
    /// 文章标题字体类型
    /// </summary>
    public string? TitleFontType { get; set; }

    /// <summary>
    /// 文章内容
    /// </summary>
    public string? ArticleContent { get; set; }

    /// <summary>
    /// 文章的作者
    /// </summary>
    public string? Author { get; set; }

    /// <summary>
    /// 文章来源
    /// </summary>
    public string? Origin { get; set; }

    /// <summary>
    /// 图片的地址
    /// </summary>
    public string? PhotoUrl { get; set; }

    /// <summary>
    /// 文章属于哪个类别
    /// </summary>
    public ArticleCategory? ArticleCategory { get; set; }

    /// <summary>
    /// 设置了额外的外键
    /// </summary>
    public int ArticleCategoryId { get; set; }

    //-----------------------一篇文章下面有多条评论。
    public List<ArticleComment>? ArticleComments { get; set; }

    //文章点击数
    public int Hits { get; set; }
}